import 'package:boss/provider/table_provider.dart';
import 'package:boss/ui/page/tableManagement/page/sortTable/provider/sort_table_provider.dart';
import 'package:boss/ui/widget/button/fixed_bottom_btn.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class SortTableFooter extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FixedBottomBtn(
      title: '保 存',
      onTap: () {
        var tableProvider = Provider.of<TableProvider>(context, listen: false,);
        var sortTableProvider = Provider.of<SortTableProvider>(context, listen: false,);
        tableProvider.sortTable(sortTableProvider.tables);
      },
    );
  }
}
